<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>判断浏览器是否支持video标签</title>
</head>
<body>
<script type="text/javascript">
    var hasVideo = !!(document.createElement('video').canPlayType);
</script>
</body>
</html>